// import { Button, Typography } from 'antd'
import { TestController } from '@/services/Test'
import css from './index.module.less'
import CopyText from '@/components/CopyText'
import { useEffect, useState } from 'react'
import { Button } from 'antd'

export default function Index() {
  const [count, setCount] = useState(0)
  const init = () => {
    console.log('init')
    TestController.query().then((res) => {
      console.log('res', res)
    })
  }

  useEffect(() => {
    init()
  }, [])
  return (
    <>
      <div className={css.box}>
        {/* <h1 className="text-3xl font-bold italic underline">Hello world!</h1>
      <Button type="primary">xxx</Button>
      <Typography.Text>Hello World</Typography.Text> */}

        <br />
        <CopyText text="Hello World" title="复制信息" />

        <br />
        <CopyText text="Hello World" title="复制信息">
          <p>复制我</p>
        </CopyText>

        <Button onClick={() => setCount(count + 1)}>{count}</Button>
      </div>
    </>
  )
}
